package org.come.mouslisten;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import org.come.Frame.ZhuFrame;
import org.come.entity.Goodstable;
import org.come.until.MessagrFlagUntil;

public class VipGoodsMouselistener implements MouseListener {

	private Goodstable goodstable;

	public VipGoodsMouselistener() {
	}

	public VipGoodsMouselistener(Goodstable goodstable) {
		this.goodstable = goodstable;
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		if (goodstable == null) {
            return;
        }
		ZhuFrame.getZhuJpanel().creatgoodtext(goodstable);
	}

	@Override
	public void mouseExited(MouseEvent e) {
		MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE1);
		ZhuFrame.getZhuJpanel().cleargoodtext();
	}

	@Override
	public void mouseClicked(java.awt.event.MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mousePressed(java.awt.event.MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseReleased(java.awt.event.MouseEvent e) {
		// TODO Auto-generated method stub

	}

	public Goodstable getGoodstable() {
		return goodstable;
	}

	public void setGoodstable(Goodstable goodstable) {
		this.goodstable = goodstable;
	}

}
